package com.ble.utlis;

import com.inuker.bluetooth.library.model.BleGattProfile;

import java.util.HashMap;
import java.util.Map;

public class Global {
    public static Map<String, BleGattProfile> bleGattProfileMap = new HashMap<>();


    //获取高四位
    public static int getHeightFour(byte data){
        int height;
        height = ((data & 0xf0) >> 4);
        return height;
    }
    //获取低四位
    public static int getLowFour(byte data){
        int low;
        low = (data & 0x0f);
        return low;
    }
}
